#ifndef SONGITEM_H
#define SONGITEM_H

#include <QString>
#include <QPixmap>
#include <QUrl>
struct SongItem
{
    qint64 wangyiyun_id = 0;
    QUrl wangyiyun_url;
    QUrl local_url;
    QString name;
    QString album;
    QString artist;
    QPixmap image;
    QUrl image_url;
    qint64 duration = 0;
    bool isLike = false;
    bool isPlaying = false;
    QUrl url() const
    {
        if (local_url.isEmpty() == false) return local_url;
        if (wangyiyun_url.isEmpty() == false) return wangyiyun_url;
        return QUrl();
    }
};

#endif // SONGITEM_H
